package com.chinamobile.push

import androidx.annotation.WorkerThread
import com.cmcc.shared.SdkManager
import com.cmcc.shared.utils.L
import com.google.firebase.messaging.FirebaseMessagingService
import com.google.firebase.messaging.RemoteMessage

class MyFirebaseMessagingService : FirebaseMessagingService() {

    @WorkerThread
    override fun onNewToken(token: String) {
        L.d("taxi", "Refreshed token: $token")
    }

    @WorkerThread
    override fun onMessageReceived(remoteMessage: RemoteMessage) {
        super.onMessageReceived(remoteMessage)
        SdkManager.onMessageReceived(this, remoteMessage)
    }

}